/**
 *  * Created by wz on 2017/9/26
 *  * <p/>
 *  * Copyright (c) 2015-2015
 *  * Apache License
 *  * Version 2.0, January 2004
 *  * http://www.apache.org/licenses/
 *  
 */
package com.huirui.service;

import com.huirui.dao.IdentityDAO;
import com.huirui.entity.Identity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IdentityService {

    @Autowired
    IdentityDAO identityDAO;

    public void insertIdentity(Identity identity){
        identityDAO.save(identity);
    }

    public List<Identity> listIdentity(){
        return identityDAO.findAll();
    }

}
